package com.css.fxfzypg.modules.baseData.repository;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.entity.HosPeoEntity;
import com.css.fxfzypg.modules.baseData.entity.VillageTownHosPeoEntity;
import com.css.fxfzypg.modules.baseData.queryParams.VillageTownHosPeoQueryParams;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-23 12:49
 */
public interface VillageTownHosPeoRepository {


    int saveHosPeo(VillageTownHosPeoEntity hosPeoEntity);

    VillageTownHosPeoEntity fingHosPeoById(String id);

    VillageTownHosPeoEntity fingHosPeoBydivision(String provinceId, String cityId, String prefectureId,String villageTown);

    int updateHosPeo(VillageTownHosPeoEntity hosPeoEntity);

    JSONObject getAllHosPerByParams(VillageTownHosPeoQueryParams queryParams, int curPage, int pageSize);

    void deleteHosPeo(String id, String userId, Timestamp currentTimestamp);

    List<VillageTownHosPeoEntity> exportExcel();

    void importExcel(List<HosPeoEntity> hosPeoEntities);

    VillageTownHosPeoEntity findHosPeo(String province, String city, String prefecture, String street);

    void delete(VillageTownHosPeoEntity entity);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
